package oo7;

public class CameraTest {

	public static void main(String[] args) {
		// 测试摄像头
//		USBCamera uc = new USBCamera("东方通");
//		uc.plugin();
//		uc.takePhoto();
//		uc.videoChat();
//		uc.unplug();

		USB u = new USBCamera("东方通");
		u.plugin();
		u.unplug();

		PhotoTaker pt = (PhotoTaker) u;
		pt.takePhoto();
		pt.videoChat();

		USB[] br = new USB[20];
		br[0] = u;
		// .......

	}

}
